package org.nfIt;


import org.nfIt.comfig.SpringComfig;
import org.nfIt.dao.BookDao;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import javax.sql.DataSource;

/**
 * ClossName:App
 * Pakage:org.nfIt
 * Description
 *
 * @Author L
 * @Create 2024/5/3 0:07
 * @Version 2023.1.3
 */
public class AppAnnotation {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringComfig.class);
        DataSource bean = context.getBean(DataSource.class);
        System.out.println(bean);

    }
}
